<!DOCTYPE html>
<html>
<head>
		<meta charset="UTF-8">
	<title>查看订单</title>
</head>
<body>
<table border="1">
	<tr><td>订单编号</td><td>书籍ID</td><td>购买者</td> <td>邮寄地址</td></tr>
	{% for order in orders%}
		<tr>
			<td>{{order.id}}</td>
			<td>{{order.book_id}}</td>
			<td>{{order.buyer_name}}</td>
			<td>{{order.buyer_address}}</td>
			<td>
				<form action="/confirm" method="post">
					<input type="hidden" name="order_id" value={{order.id}} />
					<input type="submit" value="发货确认">
				</form>
			</td>
		</tr>
	{% end %}
</table>

</body>
</html>